package com.chb.controller;

import com.chb.model.vo.Result;
import com.chb.service.MainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 陈海彬
 * @date: Created in 2023/10/8 11:56
 * @description: 主页面
 * @modified By:
 * @version: 1.0
 */
@RestController
@RequestMapping("/main")
public class MainController {
    @Autowired
    private MainService mainService;

    /**
     * @create by: 陈海彬
     * @description: 获取主页需要的数据
     * @create time: 2023/10/8 11:59
     */
    @GetMapping("/getAllInfo")
    public Result getAllInfo() {
        return mainService.getAllInfo();
    }
}